package com.fulihui.wgj.auth.config;

/**
 * 启用FastJson作为API响应处理
 * Created by LeeSon on 2016/12/1 0001.
 */
//@Configuration
//@ConditionalOnClass({ FastJsonHttpMessageConverter.class })
//@ConditionalOnProperty(name = { "spring.http.converters.preferred-json-mapper" }, havingValue = "fastjson", matchIfMissing = true)
//public class FastJson2HttpMessageConverterConfiguration {
//    @Bean
//    public FastJsonHttpMessageConverter fastJsonHttpMessageConverter() {
//        FastJsonHttpMessageConverter converter = new FastJsonHttpMessageConverter();
//        FastJsonConfig fastJsonConfig = new FastJsonConfig();
//        fastJsonConfig.setSerializerFeatures(SerializerFeature.WriteMapNullValue);
//        converter.setFastJsonConfig(fastJsonConfig);
//
//        return converter;
//    }
//}